<?php

namespace app\controllers;

use core\{Session, Captcha};

class Home extends \core\Controller
{
    public function index()
    {
        $this->pageInfo = ['title' => '首页'];
        $this->view('home');
    }

    public function demo()
    {
        echo 'home/demo';
        dump($this->gets);
    }

    // 验证码
    public function captcha()
    {
        $vcode = new Captcha();
        $vcode->make();
    }
}
